package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.domain.po.Account;
import com.example.springboot.domain.po.Admin;
import com.example.springboot.domain.po.User;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.service
 * @Project：springboot
 * @name：AdminService
 * @Date：2025/2/3 22:30
 * @Filename：AdminService
 * @for:
 */
public interface AdminService extends IService<Admin> {
    List<Admin> getAll();

    Admin adminLogin(Admin admin);

    Admin findById(Integer id);

    Admin adminRegister(Admin admin);

    void deleteById(Integer id);

    void update(Admin admin);

    PageInfo<Admin> findPage(Admin admin, Integer pageNum, Integer pageSize);

    Admin adminRole(Admin admin);
}
